//
//  HEIMRoomInAndoutCell.m
//  HealthFamily
//
//  Created by 吴欧 on 2021/3/1.
//  Copyright © 2021 honglutec. All rights reserved.
//

#import "HEIMRoomInAndoutCell.h"

@interface HEIMRoomInAndoutCell ()

@property(nonatomic, strong) UILabel *textLb;

@end

@implementation HEIMRoomInAndoutCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        self.selectionStyle = UITableViewCellSelectionStyleNone;
  
        [self initUI];
    }
    return self;
}

- (void)initUI {
    _textLb = [UILabel new];
    _textLb.text = @"您对团队的本次服务满意吗？";
    _textLb.font = DYFont(16);
    _textLb.numberOfLines = 0;
    _textLb.textColor = CNavDargGrayColor;
    _textLb.lineBreakMode = NSLineBreakByCharWrapping;
    _textLb.textAlignment = NSTextAlignmentCenter;
    [self.contentView addSubview: _textLb];
    
    [_textLb mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.contentView).mas_offset(10);
        make.left.equalTo(self.contentView).mas_offset(30);
        make.right.equalTo(self.contentView).mas_offset(-30);
        make.bottom.equalTo(self.contentView).mas_offset(-10);
    }];
}

- (void)configCellWithModel:(HEIMMessageModel *)model {
    _textLb.text = model.message.text;
}

@end
